<?php

namespace App\Module\Admin\Controllers;

use App\System\Order\Repositories\OrderInfoRepository;
use App\System\Cis\Repositories\CisUserRepository;

/**
 * Class IndexController 主页
 * @package App\Module\Admin\Controllers
 */
class IndexController extends Controller
{
    /**
     * 主页
     */

    //数据统计
    public function index()
    {
//        return 1;
        $order = OrderInfoRepository::getInstance();
        $orderData = $order->getData();
        $user = CisUserRepository::getInstance();
//        $userData = $user->getData();
        $userData = $orderData;
        return view('admin.index.index',compact('orderData','userData'));
    }

    //无权限提示页
    public function noAuth()
    {
        return view('admin.index.noAuth');
    }
}
